import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MarshalException } from "../../Engine/RMI/MarshalException";
type int = number;
//class EDrug
    
    export  class EDrug
    {
        constructor(arg1: int)
        {
            
            this.__value = arg1;
            return;
        }

        public value(): int
        {
            return this.__value;
        }

        public __write(arg1: SerializeStream): void
        {
            arg1.writeByte(this.__value);
            return;
        }

        public static convert(arg1: int): EDrug
        {
            return new EDrug(arg1);
        }

        public static __read(arg1: SerializeStream): EDrug
        {
            var loc1=arg1.readByte();
            if (loc1 < 0 || loc1 >= 21) 
            {
                throw new MarshalException();
            }
            return EDrug.convert(loc1);
        }

        public static /* const */_EDrugLife: int=0;

        public static /* const */_EDrugMana: int=1;

        public static /* const */_EDrugBuff: int=2;

        public static /* const */_EDrugExp: int=3;

        public static /* const */_EDrugMoreExp: int=4;

        public static /* const */_EDrugPetEnergy: int=5;

        public static /* const */_EDrugPetLifeSpan: int=6;

        public static /* const */_EDrugPetExp: int=7;

        public static /* const */_EDrugPetMoreExp: int=8;

        public static /* const */_EDrugChangeShape: int=9;

        public static /* const */_EDrugGuildFlameWine: int=10;

        public static /* const */_EDrugPetLife: int=11;

        public static /* const */_EDrugLifeBag: int=13;

        public static /* const */_EDrugManaBag: int=14;

        public static /* const */_EDrugLifePetBag: int=15;

        public static /* const */_EDrugMakeFunProp: int=16;

        public static /* const */_EDrugMountExpDrug: int=17;

        public static /* const */_EDrugMountExpDrugEx: int=18;

        public static /* const */_EDrugExpByLevel: int=19;

        public static /* const */_EDrugTimeLimitExp: int=20;

        public /* var */__value: int;
    }
